package com.bjfu.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class AchievementDTO {
    private Long achievement_id;
    private String title;
    private Integer category;
    private String summary;
    private String description;

    private String content;
    private String attachment_link;
    private LocalDateTime created_time;
    public Integer status; //add:状态，0草稿，1待审核，2（审核通过）已发布，3审核失败，4隐藏
    private Long team_id;

    public Long getAchievement_id() {
        return achievement_id;
    }

    public void setAchievement_id(Long achievement_id) {
        this.achievement_id = achievement_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAttachment_link() {
        return attachment_link;
    }

    public void setAttachment_link(String attachment_link) {
        this.attachment_link = attachment_link;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime getCreated_time() {
        return created_time;
    }

    public void setCreated_time(LocalDateTime created_time) {
        this.created_time = created_time;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getTeam_id() {
        return team_id;
    }

    public void setTeam_id(Long team_id) {
        this.team_id = team_id;
    }

    @Override
    public String toString() {
        return "AchievementDTO{" +
                "achievement_id=" + achievement_id +
                ", title='" + title + '\'' +
                ", category=" + category +
                ", summary='" + summary + '\'' +
                ", description='" + description + '\'' +
                ", content='" + content + '\'' +
                ", attachment_link='" + attachment_link + '\'' +
                ", created_time=" + created_time +
                ", status=" + status +
                ", team_id=" + team_id +
                '}';
    }
}
